﻿/*---------------------------------------------------------------------*/
// fileName="INotifyService.cs" CompanyName="SureKAM"
// Copyright SureKAM (c). All right reserved.
/*---------------------------------------------------------------------*/

namespace SureKAM.BackUp.Notify.Service.Interfaces
{
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;

    public interface INotifyService
    {
        /// <summary>
        /// 添加notify对象
        /// </summary>
        /// <param name="notify">notify对象</param>
        /// <returns>返回添加notify对象</returns>
        string Add(Domain.Notify notify);

        /// <summary>
        /// 更新Notify对象
        /// </summary>
        /// <param name="notify">notify对象</param>
        /// <returns>返回更新后的notify对象</returns>
        Domain.Notify Update(Domain.Notify notify);

        /// <summary>
        /// 删除Notify对象
        /// </summary>
        /// <param name="notify">notify对象</param>
        /// <returns>返回删除的notify对象</returns>
        string Delete(Domain.Notify notify);

        /// <summary>
        /// 通过ID获取Notify对象
        /// </summary>
        /// <param name="id">notify id</param>
        /// <returns>返回相应的Notify对象</returns>
        Domain.Notify GetNotifyById(string id);

        /// <summary>
        /// 获取所有Notify对象
        /// </summary>
        /// <returns>返回所有的notify对象</returns>
        List<Domain.Notify> GetNotifies();
    }
}
